package cc.wanforme.st.server.base.mapper;

import cc.wanforme.st.server.base.entity.User;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.lang.Nullable;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author wanne
 * @since 2023-01-03
 */
public interface UserMapper extends BaseMapper<User> {

	/** 用户名查询*/
	User selectByUsername(String username);
	
	/** 搜索昵称和用户名
	 * @param name
	 * @return
	 */
	List<User> listUsers(@Nullable @Param("name") String name, 
			@Nullable @Param("username") String username,
			@Nullable @Param("status") String status);
}
